package com.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.feign.FeignInterface;
import com.model.Order;


@RestController
public class ControllerForFeign {
		
	@Autowired
	private FeignInterface feignTool;
	
	@RequestMapping(value = "/getOrder", method = RequestMethod.GET)
	public Order getOrder() {
		return feignTool.getOrderByID("101");
	}
	
	
}
